package com.shine.security;

import com.baomidou.mybatisplus.annotation.TableField;
import com.shine.info.UserInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author huihui
 * @date 2025/10/11 16:33
 * @description UserPrincipal
 */
@Data
public class UserPrincipal implements Principal {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "头像")
    private String headImage;

    /**
     * 角色列表
     */
    @TableField(exist = false)
    private List<String> roleList;

    /**
     * 权限列表
     */
    @TableField(exist = false)
    private List<String> permissionList;

}
